import Request from '@/libs/request'

/**查询数据采集配置页面 */
export const uSelectDevDataCollectConf = (data: {userId: string}) =>
  Request.get<DataCollection.CollectionDetail[]>('/user/uSelectDevDataCollectConf', data)

/**修改设备采集频率 */
export const uEditUploadInterval = (data: {devId: number; intervalData: number}) =>
  Request.get<null>('/user/uEditUploadInterval', data)

/**修改设备上传数据开关 */
export const uSetUpLoadSwitch = (data: {devId: number; isOpen: IsOpen}) =>
  Request.get<null>('/user/uSetUpLoadSwitch', data)
